﻿using Architecture.Domain;
using Architecture.Domain.RBAC;
using Microsoft.EntityFrameworkCore;
using static Architecture.Domain.vendor;

namespace Architecture.Repository
{
    public class EFCoreContext:DbContext
    {
        public EFCoreContext(DbContextOptions<EFCoreContext> options) : base(options) { }
        #region  RBAC用量表
        /// <summary>
        /// 用户表
        /// </summary>
        public DbSet<UserInfo> UserInfos { get; set; }
        /// <summary>
        /// 省份表
        /// </summary>
        public DbSet<Province> Provinces { get; set; }
        /// <summary>
        /// 市区表
        /// </summary>
        public DbSet<Urban> Urbans { get; set; }
        /// <summary>
        /// 县城表
        /// </summary>
        public DbSet<County> Counties { get; set; }

        /// <summary>
        /// 角色表
        /// </summary>
        public DbSet<Role> Roles { get; set; }
        /// <summary>
        /// 用户角色关系表
        /// </summary>
        public DbSet<Related> Relateds { get; set; }
        // <summary>
        /// 菜单表
        /// </summary>
        public DbSet<Menu> Menus { get; set; }
        // <summary>
        /// 菜单角色关系权限表
        /// </summary>
        public DbSet<Privileges> Privileges { get; set; }
        // <summary>
        /// 请假申请表
        /// </summary>
        public DbSet<Leaved> Leaveds { get; set; }
        #endregion

        #region 爱吃兔-表
        /// <summary>
        /// 溯源表
        /// </summary>
        public DbSet<Traceability> Traceabilities { get; set; }
        /// <summary>
        /// 商品表
        /// </summary>
        public DbSet<Goods> Goods { get; set; }
        /// <summary>
        /// 养殖信息表
        /// </summary>
        public DbSet<Farming> Farmings { get; set; }
        /// <summary>
        /// 保健信息表
        /// </summary>
        public DbSet<Health> Healths { get; set; }
        /// <summary>
        /// 屠宰信息表
        /// </summary>
        public DbSet<Slaughter> Slaughters { get; set; }
        /// <summary>
        /// 深加工信息表
        /// </summary>
        public DbSet<Processing> Processings { get; set; }
        /// <summary>
        /// 企业信息表
        /// </summary>
        public DbSet<Business> Businees  { get; set; }
        /// <summary>
        /// 原料表
        /// </summary>
        public DbSet<RawMaterials> RawMaterials { get; set; }
        /// <summary>
        /// 辅料表
        /// </summary>
        public DbSet<Accessories> Accessories { get; set; }
        /// <summary>
        /// 添加剂表
        /// </summary>
        public DbSet<Additive> Additives { get; set; }
        /// <summary>
        /// 包材表
        /// </summary>
        public DbSet<Packaging> Packagings { get; set; }
        /// <summary>
        /// 图片表
        /// </summary>
        public DbSet<Photo> Photos { get; set; }
        #endregion
    }
}